home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
game_224.swf
/
scripts
/
frame_96
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
954b
|
44 lines
x = "1";
Temp = "0";
while(piles >= x)
{
TempValue = "0";
y = "1";
Ace = "0";
while(getProperty("_level0/PlayerCard0" add x add "/Card0" add y, _visible) == "1")
{
Temp = getProperty("_level0/PlayerCard0" add x add "/Card0" add y, _currentframe);
while("14" < Temp)
{
Temp = temp - "13";
}
Temp -= "1";
if("10" < Temp)
{
Temp = "10";
}
if(Temp == "1")
{
Ace += "1";
Temp = "11";
}
TempValue += Temp;
while("21" < TempValue and "0" < Ace)
{
TempValue -= "10";
Ace -= "1";
}
y += "1";
}
set("_level0/Pileinfo0" add x add "/:Cval",TempValue);
if("21" < TempValue)
{
set("_level0/Pileinfo0" add x add "/:t1",TempValue add ", Busted");
}
else
{
set("_level0/Pileinfo0" add x add "/:t1",TempValue);
}
x += "1";
}